﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _19_C_中的静态
{
    internal class Test2
    {
        private string name = "张三";

        public static string staticName = "李四";

        public Test2()
        {
            name = "张三1";
            staticName = "李四1";
        }
        public Test2(string name)
        {
            this.name = name;
        }

        static Test2()
        {
            //name = "张三2";
            staticName = "李四2";
        }

        public void Show()
        {
            Console.WriteLine(name);
        }
    }
}
